<!DOCTYPE html>
<html lang="en">
<head>
    <script src="/static/js/dev.js"></script>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--bootstrap插件-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <!--    <link href="/static/plugin/bootstrap/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet"/>-->
    <link href="/static/plugin/element-ui/element-ui.css" rel="stylesheet"/>
    <!--字体插件-->
    <link href="/static/plugin/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
    <!--common-->
    <link href="/static/css/common.css" rel="stylesheet"/>
    <link href="/static/css/common-element-plus.css" rel="stylesheet"/>
    <link href="/static/css/common_biz.css" rel="stylesheet"/>

    <title>代码生成</title>
    <style>

    </style>
    <style>

    </style>
</head>
<body class="skin-default">
<div id="app" class="element-app-box">

        <el-row :gutter="15">
            <el-col :span="24">
                <el-form :inline="false" :model="formData" label-position="right" label-width="100px">
                    <el-row :gutter="15">
                        <el-col :span="12">
                            <el-form-item label="数 据 表">
                                <jo-el-data url="{URL_CMS}lowcode/db/getTableList">
                                    <template #default="scope">
                                        <el-select v-model="formData.tableName" placeholder="请选择数据表"
                                                   @change="tableChange">
                                            <el-option :label="item.tableName" :value="item.tableName"
                                                       v-for="item in scope.data"></el-option>
                                        </el-select>
                                    </template>
                                </jo-el-data>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="实体类名">
                                <el-input v-model="formData.className"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="表(类)注 释">
                                <el-input v-model="formData.name"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="链路追踪">
                                <el-radio-group v-model="formData.extInfo.traceType">
                                    <el-radio :label="1">完整启用</el-radio>
                                    <el-radio :label="2">仅Web入口</el-radio>
                                    <el-radio :label="0">不启用</el-radio>
                                </el-radio-group>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="基础包路径">
                                <el-input v-model="formData.packagePath"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="模 块 名">
                                <el-input v-model="formData.moduleName"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="保存路径">
                                <el-input v-model="formData.savePath"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="服务域名">
                                <jo-el-data url="{URL_CMS}lowcode/generate/getDomainList">
                                    <template #default="scope">
                                        <el-select v-model="formData.extInfo.webDomain" placeholder="请选择服务域名">
                                            <el-option :label="item.value" :value="item.key"
                                                       v-for="item in scope.data"></el-option>
                                        </el-select>
                                    </template>
                                </jo-el-data>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="作　　者">
                                <el-input v-model="formData.author"></el-input>
                            </el-form-item>
                        </el-col>

                        <el-col :span="24">
                            <el-form-item label="其他属性">
                                <div>
                                        <span class="other-config-item">
                                            <el-checkbox v-model="formData.extInfo.supportImportExcel" label="支持导入"
                                                         :true-label="1" :false-label="0"></el-checkbox>
                                        </span>
                                    <span class="other-config-item">
                                            <el-checkbox v-model="formData.extInfo.supportExportExcel" label="支持导出"
                                                         :true-label="1" :false-label="0"></el-checkbox>
                                        </span>
                                    <span class="other-config-item">
                                            <el-radio-group v-model="formData.extInfo.modelExtendsType">
                                                <el-radio :label="1">继承DbSortDO</el-radio>
                                                <el-radio :label="2">继承BaseDO模型</el-radio>
                                                <el-radio :label="3">继承并自动填充BaseDO</el-radio>
                                            </el-radio-group>
                                        </span>
                                </div>

                            </el-form-item>
                        </el-col>
                    </el-row>

                </el-form>
            </el-col>
        </el-row>

</div>


<!--配置信息-->
<script src="/static/js/config.js"></script>
<!--jquery-->
<script src="/static/plugin/jquery/jquery-3.3.1.js"></script>
<script src="/static/plugin/jquery/jquery.cookie.js"></script>
<!--layer-->
<script src="/static/plugin/layer/layer.js"></script>
<!--vue-->
<script src="/static/plugin/vue/v3/vue.global.js"></script>
<script src="/static/plugin/element-ui/element-ui.js"></script>
<script src="/static/plugin/element-ui/locale/zh-cn.js"></script>
<!--[if lt IE 9]>
<script src="/static/plugin/other/html5shiv.js"></script>
<script src="/static/plugin/other/respond.min.js"></script>
<![endif]-->
<!--jo-->
<script src="/static/plugin/jo/jo.js"></script>
<script src="/static/plugin/jo/jo-adapt.js"></script>
<script src="/static/plugin/jo/jo-adapt-element-plus.js"></script>
<script src="/static/plugin/jo/jo-page-view.js"></script>
<script src="/static/plugin/jo/jo-page-form.js"></script>
<script src="/static/plugin/jo/jo-listener.js"></script>
<script src="/static/plugin/jo/jo-page-element-plus.js"></script>
<!--common-->
<script src="/static/js/common.js"></script>
<script src="/static/js/common_biz.js"></script>

<script type="text/javascript">


</script>

</body>
</html>
